package utils

type SliceUtils[T int32 | string | float64] struct {
	TargetList []T
}

// Contains 检查是否包含
func (s *SliceUtils[T]) Contains(value T) bool {
	for _, v := range s.TargetList {
		if v == value {
			return true
		}
	}
	return false
}
